package net.yunxinyong.cec.entity;

import net.yunxinyong.cec.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Cec711TwoEntity {
    private Integer id;

    private Integer baseId;

    private BigDecimal investmentAmount;

    private Integer moreThan5000;

    private String projectCode;

    private String projectName;

    private String province;

    private String city;

    private String county;

    private String towns;

    private String village;

    private String industryCode;

    private String startTime;

    private String productionTime;

    private BigDecimal planTotalInvestment;

    private BigDecimal cumulativeInvestment;

    private BigDecimal completeInvestment;

    private String unitHead;

    private String statisticalControlOfficer;

    private String fillFormBy;

    private String phone;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    private Integer status;
    //格式化后的表更新日期
    private String newupdateTime;
    //格式化后的表创建日期
    private String newcreateTime;

    public String getNewupdateTime() {
        return DateUtil.formatDateToStr(this.updateTime);
    }

    public void setNewupdateTime(String newupdateTime) {
        this.newupdateTime = newupdateTime;
    }

    public String getNewcreateTime() {
        return DateUtil.formatDateToStr(this.createTime);
    }

    public void setNewcreateTime(String newcreateTime) {
        this.newcreateTime = newcreateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBaseId() {
        return baseId;
    }

    public void setBaseId(Integer baseId) {
        this.baseId = baseId;
    }

    public BigDecimal getInvestmentAmount() {
        return investmentAmount;
    }

    public void setInvestmentAmount(BigDecimal investmentAmount) {
        this.investmentAmount = investmentAmount;
    }

    public Integer getMoreThan5000() {
        return moreThan5000;
    }

    public void setMoreThan5000(Integer moreThan5000) {
        this.moreThan5000 = moreThan5000;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode == null ? null : projectCode.trim();
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName == null ? null : projectName.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county == null ? null : county.trim();
    }

    public String getTowns() {
        return towns;
    }

    public void setTowns(String towns) {
        this.towns = towns == null ? null : towns.trim();
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village == null ? null : village.trim();
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode == null ? null : industryCode.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getProductionTime() {
        return productionTime;
    }

    public void setProductionTime(String productionTime) {
        this.productionTime = productionTime == null ? null : productionTime.trim();
    }

    public BigDecimal getPlanTotalInvestment() {
        return planTotalInvestment;
    }

    public void setPlanTotalInvestment(BigDecimal planTotalInvestment) {
        this.planTotalInvestment = planTotalInvestment;
    }

    public BigDecimal getCumulativeInvestment() {
        return cumulativeInvestment;
    }

    public void setCumulativeInvestment(BigDecimal cumulativeInvestment) {
        this.cumulativeInvestment = cumulativeInvestment;
    }

    public BigDecimal getCompleteInvestment() {
        return completeInvestment;
    }

    public void setCompleteInvestment(BigDecimal completeInvestment) {
        this.completeInvestment = completeInvestment;
    }

    public String getUnitHead() {
        return unitHead;
    }

    public void setUnitHead(String unitHead) {
        this.unitHead = unitHead == null ? null : unitHead.trim();
    }

    public String getStatisticalControlOfficer() {
        return statisticalControlOfficer;
    }

    public void setStatisticalControlOfficer(String statisticalControlOfficer) {
        this.statisticalControlOfficer = statisticalControlOfficer == null ? null : statisticalControlOfficer.trim();
    }

    public String getFillFormBy() {
        return fillFormBy;
    }

    public void setFillFormBy(String fillFormBy) {
        this.fillFormBy = fillFormBy == null ? null : fillFormBy.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}